package com.example.commons.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;
import java.util.Date;

/**
 * 权限表
 */
@Data
@TableName
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
public class Right implements Serializable{
    /**
     * 主键
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    /**
     * 权限名
     */
    private String rightName;
    /**
     * 权限编码
     */
    private String rightCode;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 角色描述
     */
    private String description;
}
